﻿using System.Collections.Generic;
using System;
namespace Project.Domain.Entities
{
    public class Bet
    {
        public int BetId { get; set; }
        public int MatchId { get; set; }
        public int UserId { get; set; }
        public decimal MaxBet { get; set; }
        public decimal CurrentBet { get; set; }
        public decimal? ScoreHomeBefore { get; set; }
        public decimal? ScoreAwayBefore { get; set; }
        public decimal? ScoreHomeAfter { get; set; }
        public decimal? ScoreAwayAfter { get; set; }
        public DateTime? CreatedTime { get; set; }
        //type =1 3way,2:handicap,3: Asian Handicap,4 Under/Over,5 Exact Score
        public int Type { get; set; }

        // Status=1 match in In-Play or trong trận đấu
        // Status=0 match chưa over maxbet, or chưa đến giờ đá
        public bool Status { get; set; }

        public virtual Match Match { get; set; }
        public virtual User User { get; set; }
        public virtual ICollection<BetDetail> BetDetails { get; set; }
    }
}